package car;

public class Sedan extends Auto {
    private String ownerName;

    public Sedan(String model, String licensePlate, String ownerName) {
        super(model, licensePlate);
        this.ownerName = ownerName;
    }

    public void start() {
        System.out.println("欢迎乘坐传智播客的车牌号为"+licensePlate+"的"+model+"型出租车");
    }

    public void stop() {
        System.out.println("感谢乘坐"+ownerName+"的车牌号为"+licensePlate+"的"+model+"型出租车，下车时请携带随身物品");
    }
}
